package cn.gyouzhe.vo;

import cn.gyouzhe.entity.Good;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 返回的商品vo
 *
 * @author wangchuan
 * @datetime 2018/3/3 21:18
 */
@Setter
@Getter
@NoArgsConstructor
@ToString
public class GoodVo extends Good {
    /**
     * 券价格
     */
    private BigDecimal couponPrice;
    /**
     * 券条件
     */
    private BigDecimal couponCondition;
    /**
     * 查询券链接地址
     */
    private String couponLink;
    /**
     * 券开始时间
     */
    private LocalDateTime couponStartTime;
    /**
     * 券结束时间
     */
    private LocalDateTime couponEndTime;
    /**
     * 卖家名称
     */
    private String sellerName;

    public GoodVo(
            int id,
            String goodId,
            String title,
            String shortTitle,
            String desc,
            String pic,
            BigDecimal price,
            BigDecimal commission,
            int cid,
            int tmall,
            int sellNum,
            String couponId,
            BigDecimal couponPrice,
            BigDecimal couponCondition,
            String couponLink,
            LocalDateTime couponStartTime,
            LocalDateTime couponEndTime,
            String sellerId,
            String sellerName,
            int del) {
        super(id, goodId, title, shortTitle, desc, pic, price, commission, cid, tmall, sellNum, sellerId, couponId, del);
        this.couponPrice = couponPrice;
        this.couponCondition = couponCondition;
        this.couponLink = couponLink;
        this.couponStartTime = couponStartTime;
        this.couponEndTime = couponEndTime;
        this.sellerName = sellerName;
    }


}
